// import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
// import set_nodes_cls from '@dfeidao/atom-web/ui/set-nodes-cls';
import { IFeidaoAiBrowserComponent } from '@dfeidao/web/interfaces';

import set from '@dfeidao/atom-web/local/set';


export default async function a011(fd: IFeidaoAiBrowserComponent, args: { currentTarget: HTMLDivElement }) {
	//  选择员工行
	const target_node = args.currentTarget;
	const package_no = target_node.getAttribute('data-feidao-no');
	const package_name = target_node.getAttribute('data-feidao-name');
	const client_type = target_node.getAttribute('data-feidao-client_type');
	// const package_path = target_node.getAttribute('data-feidao-file_url');
	const nodes = fd.data.node.querySelectorAll('[data-alert_list]');
	nodes.forEach((i) => {
		i.classList.remove('bg-c');
	});
	args.currentTarget.classList.add('bg-c');
	// set_node_cls(node, 'bg-c', true);

	set(fd, 'package_no', package_no);
	set(fd, 'package_name', package_name);
	set(fd, 'client_type', client_type);
	// set(fd, 'package_path', package_path);
}
